package cn.chiship.framework.third.biz.wxpub.pojo.dto;

import cn.chiship.framework.common.constants.TipConstants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 文章素材表单
 * 2022/7/13
 *
 * @author LiJian
 */
@ApiModel(value = "文章素材表单")
public class ThirdWechatArticleDto {

    @ApiModelProperty(value = "公众号AppId")
    private String appId;

    @ApiModelProperty(value = "标题", required = true)
    @NotEmpty(message = "标题" + TipConstants.NOT_EMPTY)
    @Length(min = 1, max = 50)
    private String title;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "分类")
    private String categoryId;

    @ApiModelProperty(value = "封面")
    private String photo;

    @ApiModelProperty(value = "摘要")
    private String summary;

    @ApiModelProperty(value = "附件")
    private String attachment;

    @ApiModelProperty(value = "是否原创")
    private Byte isOriginal;

    @ApiModelProperty(value = "摘抄自")
    private String extractFrom;

    @ApiModelProperty(value = "类型   0 图片  1 语音  2 视频  3 文本  4 图文", required = true)
    @NotNull
    private Byte resourceType;

    @ApiModelProperty(value = "媒体ID")
    private String mediaId;

    @ApiModelProperty(value = "留言 0 不开启留言  1 所有人 2 仅粉丝")
    private Byte leavingMessage;

    @ApiModelProperty(value = "正文")
    private String contentBody;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public Byte getIsOriginal() {
        return isOriginal;
    }

    public void setIsOriginal(Byte isOriginal) {
        this.isOriginal = isOriginal;
    }

    public String getExtractFrom() {
        return extractFrom;
    }

    public void setExtractFrom(String extractFrom) {
        this.extractFrom = extractFrom;
    }

    public Byte getResourceType() {
        return resourceType;
    }

    public void setResourceType(Byte resourceType) {
        this.resourceType = resourceType;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public Byte getLeavingMessage() {
        return leavingMessage;
    }

    public void setLeavingMessage(Byte leavingMessage) {
        this.leavingMessage = leavingMessage;
    }

    public String getContentBody() {
        return contentBody;
    }

    public void setContentBody(String contentBody) {
        this.contentBody = contentBody;
    }
}